import BarChart from './components/BarChart'
const Home = () => {
    const option1 = {
        title: {
            text: '图表1'
        },
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu'],
        },
        yAxis: {
            type: 'value',
        },
        series: [
            {
                type: 'bar',
                data: [820, 932, 901, 934]
            }
        ]
    }
    const style1 = { width: '100%', height: '300px' }

    const option2 = {
        title: {
            text: '图表2'
        },
        xAxis: {
            type: 'category',
            data: ['Vue', 'React', 'Angular'],
        },
        yAxis: {
            type: 'value',
        },
        series: [
            {
                type: 'bar',
                data: [820, 932, 901]
            }
        ]
    }
    return (
        <div>
            <BarChart option={option1} style={style1} />
            <BarChart option={option2}  />
        </div>
    )
}

export default Home